package com.wiim.ui;

import com.wiim.connector.RestClient;
import com.wiim.nhapnhap.CustomFragmentActivity;
import com.wiim.nhapnhap.R;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

public class XemAnhFragment extends Fragment {
	private ImageView img;
	@Override
	public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {
		View view = inflater.inflate(R.layout.xemanh_layout, container, false);
		initFeld(view);
		 initData();
		return view;
	}

	private void initData() {
		 String service_url = "common/getfilestream/";
		 ((CustomFragmentActivity)getActivity()).imageLoader2.displayImage(RestClient.apiUrl(service_url + StoreDetailFragment.shopdata.ShopID), img, ((CustomFragmentActivity) getActivity()).options);
		
	}

	private void initFeld(View view) {
		img=(ImageView)view.findViewById(R.id.img);
		
	}
}
